package com.fuluwa.domain.usercenter.model.competence;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

import com.fuluwa.domain.shared.AbstractIdDomainObject;

/**
 * Compentence level mapping define
 * @author yongxia
 * @Date Jul 13, 2013 9:26:22 PM
 */
@Entity
public class CompentenceLevel extends AbstractIdDomainObject{

	private Integer level;
	@Enumerated(EnumType.STRING)
	private CompetenceType competenceType;
	private int levelValue;// level value for the level up.
	private CompentenceLevel() {
	}

	public CompentenceLevel(Integer level, CompetenceType competenceType, int levelValue) {
		this.level = level;
		this.competenceType = competenceType;
		this.levelValue = levelValue;
	}

	public Integer getLevel() {
		return level;
	}

	public CompetenceType getCompetenceType() {
		return competenceType;
	}

	public int getLevelValue() {
		return levelValue;
	}

	@Override
	protected Integer getDomainId() {
		return level;
	}

}
